Skip to main content

PutProductTypes

This request allows you to modify an existing product type.

Request URL

PUT https://api-dev.theownly.io/v1/productTypes/{id}

Headers

NameValueRequired?
Acceptapplication/jsonYes
Content-Typeapplication/jsonYes
AuthorizationBearer{APItoken}Yes

Parameters

NameTypeRequired?Description
nameStringYesProduct Type Name

Example Request


curl -X 'PUT' \
'https://api.theownly.io/v1/productTypes/Oo5BqeAm' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'

Example Response


{
"id": "Oo5BqeAm",
"name": "string"
}